package graphics;

import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;

import javax.imageio.ImageIO;

import utils.Vector2d;

public class Sprite {
	public BufferedImage image;
	public Vector2d centerAnchor;
	
	
	public Sprite(String filename, Vector2d centerAnchor) {
		try {
			image = ImageIO.read(new File(filename));
		}
		catch(IOException ex) {
			ex.printStackTrace();
		}
		
		this.centerAnchor = centerAnchor;
	}
}
